/*
  角色管理相关的API请求函数
*/

// eslint-disable-next-line no-unused-vars
import request from '@/utils/request'

// eslint-disable-next-line no-unused-vars
const api_base = '/sys-user-role'

export default {
  /**
   * 按照用户ID 获取角色信息
   */
  getRoleInfo: function(userId) {
    return request({
      url: `${api_base}/${userId}`,
      method: 'get'
    })
  },
  assignRoles(assignRoleVo) {
    return request({
      url: `${api_base}`,
      method: 'post',
      data: assignRoleVo
    })
  }
}

